<template>
  <div id="loading"></div>
</template>

<script>
export default {
  name: "my-modal-loading",
  data() {
    return {
      myModal: null,
    };
  },
  computed: {
    loading() {
      return this.$store.state.loading;
    },
    loadingText() {
      return this.$store.state.loadingText;
    },
  },
  watch: {
    loading: function (newVal, oldVal) {
      console.log(newVal + ", " + oldVal);
      this.showLoading(newVal);
    },
  },
  methods: {
    showLoading: function (newVal) {
      
    }
  },
};
</script>
